package com.snailhd.websocket.service.impl;

import com.snailhd.websocket.WebSocketHandler;
import com.snailhd.websocket.spi.WebsocketRpcService;
import org.apache.dubbo.config.annotation.Service;

/**
 * @author hd
 * @date 2019-12-09 23:36
 */

@Service
public class WebsocketRpcServiceImpl implements WebsocketRpcService {

    @Override
    public boolean sendMsg(String userid,String msg){
        return WebSocketHandler.sendMsg(userid, msg);
    }

}
